package com.jlnk.rxjavademo2.service;

import com.jlnk.rxjavademo2.entity.WeatherEntity;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface WeatherService {
    @GET("v2.0/current")
    Observable<WeatherEntity> getCurrentWeather(
            @Query("key") String apiKey,
            @Query("city") String city,
            @Query("state") String state,
            @Query("country") String country
    );
}